Pattern Attributes
Each pattern structure contains a set of flags that modify the way a shape is patterned. These constants are defined in thegxPatternAttributes
enumeration:
enum gxPatternAttributes { gxPortAlignPattern = 0x0001, gxPortMapPattern = 0x0002 }; typedef long gxPatternAttribute;Constant descriptions
See the section "Patterns" on page 3-31 for an example of these attributes.
gxPortAlignPattern
- Indicates that QuickDraw GX should align the pattern shapes with the view device instead of the patterned shape. When this attribute is set, the pattern does not move when the patterned shape moves. Instead, the position of the pattern stays constant with respect to the view device. In effect, the patterned shape allows you to see through to a constant background covered by the pattern shape.
gxPortMapPattern
- Indicates that mappings in the patterned shape's transform affect the patterned shape but do not affect the pattern. As an example, imagine that the transform of the patterned shape specifies that the patterned shape be scaled up by a factor of 2. If the
gxPortMapPattern
attribute is not set, then the pattern itself is magnified as well as the patterned shape. If this attribute is set, then the pattern stays the same size, but the patterned shape shows more of the pattern.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help